package com.tt.controller;

import com.tt.common.page.TtResult;
import com.tt.pojo.Menu;
import com.tt.service.IMenuService;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author 青青
 */
@RestController
@RequestMapping("/menu")
public class MenuController
{
    @Resource
    private IMenuService menuServiceImpl;


    @RequestMapping("/getMenuList")
    public TtResult getMenuList(){
        List<Menu> menuList = menuServiceImpl.getMenuList(1);

        return TtResult.ok(menuList);
    }
}
